from sympy import Symbol, sin, limit, oo

if __name__ == '__main__':
    x = Symbol("x")

    f = sin(x) / x

    # oo 代表的是无穷
    result = limit(f, x, oo)
    print(result)

    result1 = limit(f, x, +oo)
    print(result1)

    result2 = limit(f, x, -oo)
    print(result2)


